/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.sys.dao;

import com.thinkgem.jeesite.common.persistence.CrudDao;
import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao;
import com.thinkgem.jeesite.modules.sys.entity.TbCategory;

import java.util.List;

/**
 * 菜单DAO接口
 * @author ThinkGem
 * @version 2014-05-16
 */
@MyBatisDao
public interface TbCategoryDao extends CrudDao<TbCategory> {

	public List<TbCategory> findByParentIdsLike(TbCategory TbCategory);

	public List<TbCategory> findByUserId(TbCategory TbCategory);
	
	public int updateParentIds(TbCategory TbCategory);
	
	public int updateSort(TbCategory TbCategory);

	//根据名称查询改类别是否存在
	TbCategory checkTbCategory(String category);

}
